<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		// var w=window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;

		// var h=window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;

		// document.write(w+"*");
		// document.write(h);
		// 
		// 定时器
		cn = 0
		function run() {
			cn++;

			if(cn==100){

				clearInterval(time1);
				clearInterval(time2);
			}

			document.write(8);
		}
		// 周期性定时器
		time1 = setInterval(run,100);
		time2 = setInterval(run,100);
		// setTimeout(run,3000);
		// 
		
		


	</script>
</head>
<body>
	
</body>
</html>